package fleet_management

class VehicleServicing {
	String vehicleNumber
	Date servicingDate
	Long serviceKm
	Long mobilRefillingKm
	Date servicingDueDate
	Long totalCost
	String adminRole

    static constraints = {
		
		vehicleNumber(blank:false,nullable:false)
		servicingDate(blank:false,nullable:false)
		serviceKm(blank:false,nullable:false)
		mobilRefillingKm(blank:false,nullable:false)
		servicingDueDate(blank:false,nullable:false)
		totalCost(blank:false,nullable:false)
    }
	
	String toString(){
		return "$vehicleNumber"
		}
}
